﻿using System.Web;

namespace MSAcademic.v2.Infrastructure.Picture
{
    public interface IPictureService
    {
        void UserProfilePictureUpload(int userId, HttpPostedFileBase userPicture);
        void ArticleFrontPictureUpload(int articleId, HttpPostedFileBase frontPicture);
        string GetOriginalPictureUrl(string path);
        string DownloadAndUploadPictureToGallery(string url, int galleryId);            
        string GalleryPictureUpload(HttpPostedFileBase picture, int galleryId);
        byte[] ToByteArray(HttpPostedFileBase picture);
        byte[] ResizePicture(byte[] pictureByteArray, string resizeQuerystring);
        string BuildCropedPicture(string queryString, string articleFrontPictureOriginalUrl, string type);
        string DownloadAndUploadUserProfilePicture(string url, int userId);

    }
}